package com.gel.aiagent.convention.exception;


import com.gel.aiagent.common.enums.BaseErrorCode;
import com.gel.aiagent.convention.errorcode.IErrorCode;

public class RemoteException extends AbstractException {

    public RemoteException(IErrorCode errorCode) {
        this(null,null, errorCode);
    }
    public RemoteException(String message) {
        this(message,null, BaseErrorCode.REMOTE_ERROR);
    }
    public RemoteException(String message, IErrorCode errorCode) {
        this(message,null, errorCode);
    }

    public RemoteException(String message, Throwable cause, IErrorCode errorCode) {
        super(message, cause, errorCode);
    }

    @Override
    public String toString() {
        return "RemoteException{" +
                "errorCode='" + errorCode + '\'' +
                ", errorMessage='" + errorMessage + '\'' +
                '}';
    }
}
